<?php
function __dbConfig__($key, $db = "")
{
    if (empty($db))
        $db = $key;
    \Config\DbConfig::setConfig($key, "ysldb-w.mysql.polardb.rds.aliyuncs.com", "3306", "yslroot", "zkhc@123!", $db);
}
/****数据库配置****/
__dbConfig__("db_order");
__dbConfig__("db_auth");

/****缓存配置****/
\Config\MemcacheConfig::setConfig("global", "127.0.0.1", 11211);

/****Pdb日志配置****/
\Config\LogConfig::setConfig(true, "3", "/www/wwwroot/apple/web_server/Mlog/");

/****Mlog日志配置****/
\Config\ServerConfig::setConfig(
    "mlog_conf",
    array(
        "all_conf" => array(
            "rootdir" => "/www/wwwroot/apple/web_server/Mlog/",
            "level_df" => "INFO",
            "islog" => true
        ),
        "client_api" => array("app" => "client_api"),
        "ordws_admin" => array("app" => "ordws_admin"),
    )
);
